let yjb_vm = new Vue({
    el:"#header",
    data:{
        isLogin:false
    },
    created:function () {
            axios.get("/currentUser").then(function (response) {
                // alert(response.data)
                    if (response.data!=null){
                        yjb_vm.flagLogin = response.data;
                        return;
                    }
            })
    },methods: {
            fn1:function (){
                if (confirm("是否确定退出?")){
                    axios.get("/loginout").then(function (response) {
                        location.href="/login.html"
                    }).catch(function (err) {
                        alert(err)
                    })
                }
            }

    }
})